<%@ Page Language="C#" EnableViewState="false" ValidateRequest="false" AutoEventWireup="true" 
	MasterPageFile="~/App_ThemeMasters/NoStyle/OneColumnLayout.Master" Inherits="Syrinx.Gui.AspNet.Ajax.NitobiBasePage" EnableEventValidation="false" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="ScsAspNet" Namespace="Syrinx.Gui.AspNet.Ajax" TagPrefix="saj" %>
<%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>

<!--#include file="~/SiteControls/RegisterStandardControls.txt"-->
<!--#include file="../SiteControls/StandardHeaderPageContent.inc"-->
<!--#include file="../SiteControls/StandardFooterPageContent.inc"-->
<script runat="server">
	protected Swaf.Gui.AspNet2.BasePage SyrinxPage { get { return Page as BasePage; } }
	public bool PreloadFreeTextBox = false;
    public string TitleFormat = "Login";

</script>
<asp:Content ID="c0" runat="server" ContentPlaceHolderID="mainContent">
<swf:BizProc runat="server" ID="loginBP" FactoryName="userLogin" />

<div class="LoginBoxOuter">
    <div class="LoginBox">
            <saj:NitobiBizObjDisplay runat="server" ID="userLogin" ParentBizProcIds="loginBP"
	            ReadOnlyTemplate="UserLogin.Gui.AspNet.SimpleUserInfoDisplay" 
	            EditableTemplate="UserLogin.Gui.AspNet.LoginDisplay-Style1" />
            <saj:ActionButton runat="server" ID="_loginBtn" Actions="loginBP.UpdateBizObj" Text="Login" SkinID="LoginBtn" />
            <saj:ActionButton runat="server" ID="_logoffBtn" Actions="loginBP.DeleteBizObj" Text="Logoff" />
    </div>
    
</div>
   <%if(SyrinxPage.currentPrincipalPrivilege("AppFunctions.ManageProfile") >= Swaf.Security.Privileges.ReadOnly){%>
    <div class="QuickManageLink">
        <asp:HyperLink ID="hl1" runat="server"  NavigateUrl="/std/userprofile.aspx"><asp:Label runat="server" ID="_m0n1">Manage Profile</asp:Label></asp:HyperLink>
    </div>
    <%}%>	
</asp:Content>

